const columns = [
  {
    title: "序号",
    dataIndex: "index",
    key: "index",
    customRender: (text, record, index) => `${index + 1}`,
    align: "center",
  },
  {
    title: "工序序号",
    dataIndex: "workStageId",
    key: "workStageId",
    align: "center",
  },
  {
    title: "工序名称",
    dataIndex: "workStageName",
    key: "workStageName",
    align: "center",
  },
  {
    title: "工序内容",
    key: "workStageContent",
    dataIndex: "workStageContent",
    align: "center",
  },
  {
    title: "工序单价",
    key: "referencePrice",
    dataIndex: "referencePrice",
    align: "center",
  },
  {
    title: "机床",
    key: "equipNums",
    dataIndex: "equipNums",
    align: "center",
  },
  {
    title: "产能",
    key: "totalCapacity",
    dataIndex: "totalCapacity",
    align: "center",
  },
  {
    title: "操作",
    dataIndex: "action",
    key: "action",
    align: "center",
    scopedSlots: { customRender: "action" },
  },
];

// 导出表头
const excelColumns = [
  {
    title: "工序序号",
    dataIndex: "workStageId",
    key: "workStageId",
    align: "center",
  },
  {
    title: "工序名称",
    dataIndex: "workStageName",
    key: "workStageName",
    align: "center",
  },
  {
    title: "工序内容",
    key: "workStageContent",
    dataIndex: "workStageContent",
    align: "center",
  },
  {
    title: "工序单价",
    key: "referencePrice",
    dataIndex: "referencePrice",
    align: "center",
  },
  {
    title: "机床",
    key: "equipIds",
    dataIndex: "equipIds",
    align: "center",
  },
  {
    title: "操作",
    dataIndex: "action",
    key: "action",
    align: "center",
    scopedSlots: { customRender: "action" },
  },
];

export { columns, excelColumns };
